<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="tipovehiculolist.title"/></title>
    <meta name="heading" content="<fmt:message key='tipovehiculolist.heading'/>"/>    
</head>

<form:form id="tipovehiculolist">

<c:set var="buttons">
    <input type="button" class="button" 
        onclick="location.href='<c:url value="/tipovehiculo/tipovehiculoform.html?method=Add&from=list"/>'"
        value="<fmt:message key="button.add"/>"/>
        
    <input type="button" class="button" 
    	onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" /><br/><br/>
<table id="unidadesMedida" cellpadding="0" class="table" cellspacing="0" style="width: 500px" > 
	<thead> 
		<tr> 
            <th scope="col"><fmt:message key="common.tipo.vehiculo"/></th>
		</tr>
	</thead> 
	<tbody id="tipovehiculobody">
		<c:forEach var="tipovehiculo" items="${tiposVehiculo}" varStatus="status">	
			<c:choose>
				  <c:when test="${status.index % 2 == 0}"><tr class="odd" ></c:when>
				  <c:otherwise><tr class="even" ></c:otherwise>
			</c:choose>
            	<td>
					<a href="<c:url value="/tipovehiculo/tipovehiculoform.html?id=${tipovehiculo.id}&amp;from=list"/>">					
						${tipovehiculo.deTipoVehiculo}
					</a>            	
				</td>
           </tr>
        </c:forEach>				
	</tbody>
</table> 
<c:out value="${buttons}" escapeXml="false" />
</form:form>